package com.southwind.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.southwind.entity.Classes;
import com.southwind.servise.ClassesService;

@RestController
@RequestMapping("/classes")
public class ClassesController {
	@Autowired
	ClassesService service;
	  //通过id查班级 以及班级的学生
	@RequestMapping("/findById/{id}")
	 public Classes findById(@PathVariable("id") long id) {
		return service.findById(id);
		 
	 }

}
